#ifndef __ENCODE_DECODE_H__
#define __ENCODE_DECODE_H__
#include "config.h"
#include "lora_data_package.h"
#ifdef GCC_DEBUG
#include <stdint.h>
#else
#include "stm8l15x.h"
#include "485.h"
#endif
//Lora_Data_Pack *gRecv_Lora_Data_Pack;
//Lora_Data_Pack *gSend_Lora_Data_Pack;
Lora_Data_Pack * Create_Recv_Lora_Data_Pack(uint8_t *pdata, int16_t len);
void Create_Send_Lora_Data_Pack(uint8_t *pdata, int16_t len);



Validate_Status isPackageValid(uint8_t *pdata, int16_t len);
uint8_t CheckSum(uint8_t *pdata, int16_t len);
#endif
